<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>LAL后台管理系统</title>
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <link rel="stylesheet" href="{{asset('resources/org/layui/css/layui.css')}}">
    <link rel="stylesheet" href="{{asset('public/css/admin.css')}}">
    <script src="{{asset('resources/org/layui/layui.js')}}"></script>
</head>
<body>

<div class="layui-layout layui-layout-admin">
    <!--头部-->
    <div class="layui-header header">
        <a href="" style="font-size: 20px;">LAL后台管理系统</a>
        <ul class="layui-nav" style="position: absolute;top: 10px;right: 20px;background: none;">
            <li class="layui-nav-item"><a href="http://www.510463781.top" target="_blank">前台首页</a></li>
            <li class="layui-nav-item"><a href="" id="clear-cache">清除缓存</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">{{session('user')->username}}</a>
                <dl class="layui-nav-child"> <!-- 二级菜单 -->
                    <dd><a href="{{url('admin/changePassword')}}">修改密码</a></dd>
                    <dd><a href="{{url('admin/logout')}}">退出登录</a></dd>
                </dl>
            </li>
        </ul>
    </div>

    <!--侧边栏-->
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree">
                <li class="layui-nav-item layui-nav-title"><a>管理菜单</a></li>
                <li class="layui-nav-item">
                    <a href="{{url('admin/index')}}"><i class="fa fa-home"></i> 网站信息</a>
                </li>
                {foreach name="menu" item="vo"}
                {if condition="isset($vo['children'])"}
                <li class="layui-nav-item">
                    <a href="javascript:;"><i class="{$vo.icon}"></i> {$vo.title}</a>
                    <dl class="layui-nav-child">
                        {foreach name="vo['children']" item="v"}
                        <dd><a href="{:url($v.name)}"> {$v.title}</a></dd>
                        {/foreach}
                    </dl>
                </li>
                {else /}
                <li class="layui-nav-item">
                    <a href="{:url($vo.name)}"><i class="{$vo.icon}"></i> {$vo.title}</a>
                </li>
                {/if}
                {/foreach}

                <li class="layui-nav-item" style="height: 30px; text-align: center"></li>
            </ul>
        </div>
    </div>

    <!--主体-->
    @yield('content')

    <!--底部-->
    <div class="layui-footer footer">
        <div class="layui-main">
            <p>{{date('Y')}} &copy; <a href="" target="_blank">LAL</a></p>
        </div>
    </div>
</div>
</body>
</html>
<script>
    layui.use(['form','layer','element'],function () {
        form = layui.form();
        layer = layui.layer;
        element = layui.element();
    });
</script>